import request from '@/utils/request'

// 查询健康问卷列表
export function listHealth_question(query) {
  return request({
    url: '/ring/health_question/list',
    method: 'get',
    params: query
  })
}

// 查询健康问卷详细
export function getHealth_question(id) {
  return request({
    url: '/ring/health_question/' + id,
    method: 'get'
  })
}

// 新增健康问卷
export function addHealth_question(data) {
  return request({
    url: '/ring/health_question',
    method: 'post',
    data: data
  })
}

// 修改健康问卷
export function updateHealth_question(data) {
  return request({
    url: '/ring/health_question',
    method: 'put',
    data: data
  })
}

// 删除健康问卷
export function delHealth_question(id) {
  return request({
    url: '/ring/health_question/' + id,
    method: 'delete'
  })
}
